package com.yangquan.ayuan.creatThread;

import java.util.concurrent.ThreadFactory;

/**
 * The default thread factory
 */
public abstract class DefaultThreadFactory implements ThreadFactory {
   //....
    DefaultThreadFactory() { }

//    public Thread newThread(Runnable r) {
//        //可以看到在线程工厂创建线程池，也是通过 Runnable结合 Thread类的方法去创建
//        Thread t = new Thread(group, r,
//                              namePrefix + threadNumber.getAndIncrement(),
//                              0);
//        //...
//        return t;
//    }
}